// 进行axios的二次封装
import request from '@/utils/request.js'

// 登录接口： 默认用户名：admin  密码:admin
export const userLogin = ({ username, password }) => {
  return request.post('/auth/login', {
    username, password
  })
}
// 2.个人用户信息
export const userInfo = () => {
  return request.get('/auth/currentUser')
}

// 3.退出登录
export const getUser = () => {
  return request.get('/auth/currentUser')
}
